<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        /* ^开头   $结尾 */
        // 电话
        var num = "13897932473123"
        /* 严格匹配  ^reg$   */
        var reg = /^1[3-9]\d{9}$/
        console.log(reg.test(num));
    </script>
</body>
</html>